import { baseUrl2 } from "./login2";
import customFetch from "@/utils/request";

// 查询所有房屋分类
export const getHouseType = () => {
  return customFetch(`${baseUrl2}/statistics/house/decoration`, {
    method: 'GET',
    headers: {
      'Authorization': `Bearer ${localStorage.getItem('adminToken2')}`
    }
  })
}

// 查询房屋分类下的类型总数
export const getHouseTypeCount = () => {
  return customFetch(`${baseUrl2}/statistics/house/type`, {
    method: 'GET',
    headers: {
      'Authorization': `Bearer ${localStorage.getItem('adminToken2')}`
    }
  })
}